import request from '@/config/axios'

export interface CostVO{
  id: number
  doctorName: string
  doctorId: number
  doctorType: number
  typeName: string
  cost: number
}

// 查询费用管理列表
export const getCostPage = (params: PageParam) => {
  return request.get({ url: '/medical/cost/page', params })
}

// 查询费用详情
export const getCost = (id: number) => {
  return request.get({ url: '/medical/cost/get?id=' + id })
}

// 新增费用
export const createCost = (data: CostVO) => {
  return request.post({ url: '/medical/cost/create', data })
}

// 修改费用
export const updateCost = (data: CostVO) => {
  return request.put({ url: '/medical/cost/update', data })
}

// 删除费用
export const deleteCost = (id: number) => {
  return request.delete({ url: '/medical/cost/delete?id=' + id })
}